package com.recruit.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.recruit.common.model.InterviewDO;
import com.recruit.common.model.result.InterviewResultDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Eval
 * @since 2022-04-04
 */
@Mapper
public interface InterviewMapper extends BaseMapper<InterviewDO> {
    /**
     *
     * @param pager
     * @param hrID
     * @return
     */
    IPage<InterviewResultDO> getByHrId(Page<InterviewResultDO> pager, @Param("hrID") Integer hrID);
    /**
     *
     * @param pager
     * @param hrID
     * @return
     */
    IPage<InterviewResultDO> getByHrId2(Page<InterviewResultDO> pager, @Param("hrID") Integer hrID, @Param("state") Integer state);

    /**
     *
     * @param pager
     * @param userId
     * @return
     */
    IPage<InterviewResultDO> getByUserId(Page<InterviewResultDO> pager,@Param("userId")  Integer userId);
}
